<?php
	global $_W,$_GPC;
	if($_W['role']&&$_W['isajax']){
		$sid = $_GPC['sid']=='0'?'1':'0';
		$did = $_GPC['did'];
		$up =pdo_update('mii_ang_tech',array('status'=>$sid),array('id'=>$did));
		if($up){
			$code = array('status'=>'1','msg'=>'操作成功');
			exit(json_encode($code));
		}else{
			$code = array('status'=>'2','msg'=>'操作失败');
			exit(json_encode($code));
		}
	}else{
		$code = array('status'=>'2','msg'=>'没有操作权限');
		exit(json_encode($code));
	}



?>